package org.openmore.storage;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@EnableTransactionManagement
@ServletComponentScan("org.openmore.storage.service")
@MapperScan(value = "org.openmore.storage.dao")
@ComponentScan(basePackages = "org.openmore.storage.oss," +
        "org.openmore.storage.oss.service," +
        "org.openmore.storage.oss.service.impl," +
        "org.openmore.storage.polyv.service," +
        "org.openmore.storage.annotation," +
        "org.openmore.storage.framework," +
        "org.openmore.storage.controller," +
        "org.openmore.storage.service,"+
        "org.openmore.storage.service.impl,"+
        "org.openmore.storage")
@SpringBootApplication
@EnableDiscoveryClient
public class OpenMoreStorageApplication {
    public static void main(String[] args) {
        SpringApplication.run(OpenMoreStorageApplication.class,args);
    }
}
